package test;

import java.math.BigDecimal;

public class testYiWei {

    public static void main(String[] args) {
        int i = 1024 / 4 ;
        printInfo(i);
        int i1 = 1024 >> 2;
        printInfo(i1);
        int i2 = 256 << 2;
        printInfo(i2);

        int j = 1024 / 8 ;
        printInfo(j);
        int j1 = 1024 >> 3;
        printInfo(j1);

        printInfo( -10 >>> 2);

        printInfo(-1 >>> 0);

        printInfo(-1 >>> 0);

        printInfo(10);

        System.out.println(Integer.toHexString(10));
        System.out.println(Integer.toHexString(11));

        System.out.println(Integer.toOctalString(10));

        System.out.println(Integer.toString(10,16));

        System.out.println(Integer.compare(2,2));

        System.out.println(new BigDecimal(12).compareTo(new BigDecimal(12)));


    }

    private static void printInfo(int num){
        System.out.println(Integer.toBinaryString(num));
    }

}
